package com.apestech.api.workflow.modul;

import com.apestech.framework.json.JSONObject;

/**
 * @author hup
 * @create 2018-09-05-16:08
 */
public class FlowUser {

    private String id;
    private String name;
    private String candidateId;
    private String candidateName;

    public FlowUser(){};

    public FlowUser(String id, String name) {
        this.id=id;
        this.name=name;
    }

    public FlowUser(JSONObject map) {
        this.id=map.getString("id");
        this.name=map.getString("name");
        this.candidateId=map.getString("candidateId");
        this.candidateName=map.getString("candidateName");
    }

    public FlowUser(String id, String name, String candidateId, String candidateName) {
        this.id=id;
        this.name=name;
        this.candidateId=candidateId;
        this.candidateName=candidateName;
    }

    public void set(String id, String name) {
        this.id=id;
        this.name=name;
    }

    public void set(String id, String name, String candidateId, String candidateName) {
        this.id=id;
        this.name=name;
        this.candidateId=candidateId;
        this.candidateName=candidateName;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCandidateId() {
        return candidateId;
    }

    public void setCandidateId(String candidateId) {
        this.candidateId = candidateId;
    }

    public String getCandidateName() {
        return candidateName;
    }

    public void setCandidateName(String candidateName) {
        this.candidateName = candidateName;
    }
}
